<html>
    <head></head>
    <body>
        <p><a href="<?php echo MANAGE_ACCOUNT_REDIRECT;?>"><?php echo MANAGE_ACCOUNT_REDIRECT;?></a> | <a href="<?php echo MODULE_LIST_LINK;?>"><?php echo MODULE_LIST_LINK;?> </a> | <a href="<?php echo MAIN_CATEGORY_LIST_LINK;?>"><?php echo MAIN_CATEGORY_LIST_LINK;?></a> | <a href="<?php echo SUB_CATEGORY_LIST_LINK;?>"><?php echo SUB_CATEGORY_LIST_LINK;?></a>
<form method="post" action="<?php echo ADD_NEW_SUB_CATEGORY_ACTION;?>">
    <input type="hidden" name="csrf_token" value="<?php echo $data['page']['csrf_token'];?>"/>
        <fieldset id="add_main_category">
                <label for="sub_category_name"><?php echo SUB_CATEGORY_NAME;?></label>
               	<input name="sub_category_name" id="main_category_name" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="sub_category_title"><?php echo SUB_CATEGORY_TITLE;?></label>
        		<input name="sub_category_title" id="user_name" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="sub_category_access_level"><?php echo SUB_CATEGORY_ACCESS_LEVEL;?></label>
                        <select name="sub_category_access_level">
                            <option></option>
                            <?php
                            foreach($data['page']['access_levels'] as $key){
                               
                                ?>
                            <option value="<?php echo $key['id'];?>"><?php echo $key['access_level_name'];?></option>
                            <?php
                            }
                            ?>
                        </select>
        </fieldset>
        
        <fieldset>
        		<label for="sub_category_module_id"><?php echo SUB_CATEGORY_MODULE_ID;?></label>
                        <select name="sub_category_module_id">
                            <option></option>
                            <?php
                            foreach($data['page']['modules_data'] as $key){
                               
                                ?>
                            <option value="<?php echo $key['id'];?>"><?php echo $key['module_title'];?></option>
                            <?php
                            }
                            ?>
                        </select>
        </fieldset>
        <fieldset>
        		<label for="sub_category_main_category_id"><?php echo SUB_CATEGORY_MAIN_CATEGORY_ID;?></label>
                        <select name="sub_category_main_category_id">
                            <option></option>
                            <?php
                            foreach($data['page']['main_category_data'] as $key){
                               
                                ?>
                            <option value="<?php echo $key['id'];?>"><?php echo $key['main_category_title'];?></option>
                            <?php
                            }
                            ?>
                        </select>
        </fieldset>
        <fieldset>
            <label for="module_keywords"><?php echo SUB_CATEGORY_KEYWORDS;?></label><br/>
                        <textarea name="main_category_keywords"></textarea>
        </fieldset>
        <fieldset>
            <label for="module_description"><?php echo SUB_CATEGORY_DESCRIPTION;?></label><br/>
                        <textarea name="main_category_description"></textarea>
        </fieldset>
        <input type="submit" value="<?php echo ADD_SUB_CATEGORY_SUBMIT;?>" />
</form>
    </body>
</html>